﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.Windows.Media;
using SqlMiM.Common;


namespace SqlMiM.ReportingServices.ReportExportToSharepoint
{
    public class Plugin : IPlugin
    {
        #region IPlugin Members

        private Guid identity = new Guid("0B9C49F2-AECF-4829-8EB2-DA406A423E8C");
        private View view;
        private ImageSource icon;
        private IPluginGroup group;


        public Guid Identity
        {
            get
            {
                return identity;
            }
        }

        public IPluginGroup Group
        {
            get { return group; }
        }

        public string Name
        {
            get
            {
                return "Export reports to Sharepoint";
            }
        }

        public string Description
        {
            get
            {
                return "Export Reports from SSRS into a sharepoint integrated SSRS mode";
            }
        }

        public int Index
        {
            get
            {
                return 0;
            }
        }

       
        public UserControl Display
        {
            get
            {
                return view;
            }
        }

   

        public System.Windows.Input.Key Key
        {
            get
            {
                throw new NotImplementedException();
            }
        }

        public System.Windows.Media.ImageSource Icon
        {
            get
            {
                return icon;
            }
        }


        public Plugin(IPluginGroup group)
        {
            this.group = group;
            this.view = new View();
            this.icon = new BitmapImage(new Uri("/SqlMiM.ReportingServices;component/Images/export.png", UriKind.Relative)); ;
        }

        public void Activate()
        {
        }

       
        public void Deactivate()
        {
        }

        public void Refresh()
        {
            return;
        }

        #endregion
    }
}
